<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:if test="${code==1}">
<div>

	
<div>
	<form id="pagerForm" method="post"
		action="orderDetailCountByDaySearchAction.action?toResult=searchOrderDetailCountByDay&rightId=${rightId}">
		<input type="hidden" name="pageNum" value="${page.currentPage }" /> <input
			type="hidden" name="pageSize" value="${page.pageSize }" />
	</form>

	<form id="" onsubmit="return navTabSearch(this);"
		action="orderDetailCountByDaySearchAction.action?toResult=searchOrderDetailCountByDay&rightId=${rightId}"
		method="post">
		<div class="pageHeader">
			<input type="hidden" name="init" value=0>
			<div class="searchBar">
				<table class="searchContent">
					<tr>
						<td>日期：</td>
						<td><input type="text" class="date" name="count_day"
							value="${count_day}" /></td>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">检索</button>
								</div>
							</div>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div class="pageContent">
			<table class="list" width="100%" layoutH="138">
				<thead>
					<tr>
					
						<th align="center">日期</th>
						<th align="center"><a href="OrderCountDetailJfreeCharAction?chartTitle=TOTAL_ORDER&data=${page.data}" target="dialog" width="950" height="500" mask="true"><span>订单总量</span> </a></th>
						<th align="center"><a href="OrderCountDetailJfreeCharAction?chartTitle=PAY_ORDER&data=${page.data}" target="dialog" width="950" height="500" mask="true"><span>线上支付订单量</span> </a></th>
						<th align="center"><a href="OrderCountDetailJfreeCharAction?chartTitle=SALE_ORDER&data=${page.data}" target="dialog" width="950" height="500" mask="true"><span>线上优惠订单量</span> </a></th>
						<th align="center"><a href="OrderCountDetailJfreeCharAction?chartTitle=RABBIT_ORDER&data=${page.data}" target="dialog" width="950" height="500" mask="true"><span>自取件订单量</span> </a></th>
						<th align="center"><a href="OrderCountDetailJfreeCharAction?chartTitle=NET_ORDER&data=${page.data}" target="dialog" width="950" height="500" mask="true"><span>网点订单量</span> </a></th>
					</tr>
				</thead>
				<tbody>
					<s:iterator var="dayCount" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#dayCount.id" />">
							<th width="5%" align="center"><s:date
									name="#dayCount.count_day" format='yyyy-MM-dd' /></th>
							<th width="5%" align="center"><s:property
									value="#dayCount.total_count" /></th>
							<th width="5%" align="center"><s:property
									value="#dayCount.payOrder_count" /></th>
							<th width="5%" align="center"><s:property
									value="#dayCount.saleOrder_count" /></th>
							<th width="5%" align="center"><s:property
									value="#dayCount.rabbit_count" /></th>
							<th width="5%" align="center"><s:property
									value="#dayCount.netOrder_count" /></th>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab"
					totalCount="${page.totalNum }" numPerPage="${page.pageSize }"
					pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
		
	
		
	</div>
		</div>
			
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>
<script type="text/javascript">

	function orderJfreechar(){
		var a = "${page.data}";
		alert(a.toString());
		<%-- $.ajax( {
	        type : 'post',
	        url : "<%=basePath%>OrderCountDetailJfreeCharAction.action",
			data : {
				dataCount : day
			},
			success : function(data) {
				if (data == "true") {
					alertMsg.correct("统计成功！");
					$("#searchOrderCountByDayFormBar").submit();
				} else if (data == "exist") {
					alertMsg.error("已经存在该日期记录！");
				} else {
					alertMsg.error("统计失败！");
				}
			}
		}); --%>
	}

</script>

